package com.dx.service.impl;

import com.dx.pojo.*;
import com.dx.pojo.armor.Armor;
import com.dx.pojo.armor.ArmorInfo;
import com.dx.pojo.legend.ItemLegendDetail;
import com.dx.pojo.legend.ItemsLegend;
import com.dx.pojo.legend.Legend;
import com.dx.pojo.legend.SealsLegend;
import com.dx.pojo.weapon.Weapon;
import com.dx.pojo.weapon.WeaponInfo;
import com.dx.service.DestinyService;
import com.dx.utils.DestinyHtmlUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DestinyServiceImpl implements DestinyService {
    @Autowired
    private DestinyHtmlUtils destinyHtmlUtils;

    @Override
    public List<WeaponCard> getWeaponCard() throws Exception {
        List<WeaponCard> weaponCards = destinyHtmlUtils.getWeaponCard();
        return weaponCards;
    }

    @Override
    public List<String> getEntries() throws Exception {
        List<String> entries = destinyHtmlUtils.getEntries();
        return entries;
    }

    @Override
    public List<Weapon> getWeapon(String page) throws Exception {
        List<Weapon> weaponList = destinyHtmlUtils.getWeapon(page);
        return weaponList;
    }

    @Override
    public List<List<Legend>> getLegends() throws Exception {
        return destinyHtmlUtils.getLegends();
    }

    @Override
    public List<Armor> getArmor(int page) throws Exception {
        return destinyHtmlUtils.getArmor(page);
    }

    @Override
    public List<Weapon> getNewExoticWeapons() throws Exception {
        return destinyHtmlUtils.getNewExoticWeapons();
    }

    @Override
    public List<Weapon> getNewWeapons() throws Exception {
        return destinyHtmlUtils.getNewWeapons();
    }

    @Override
    public List<Armor> getNewExoticArmor() throws Exception {
        return destinyHtmlUtils.getNewExoticArmor();
    }

    @Override
    public List<Armor> getNewArmor() throws Exception {
        return destinyHtmlUtils.getNewArmor();
    }

    @Override
    public List<Other> getNewItems(String c, String s) throws Exception {
        return destinyHtmlUtils.getNewItems(c,s);
    }

    @Override
    public List<Other> getNewExoticItems() throws Exception {
        return destinyHtmlUtils.getNewExoticItems();
    }

    @Override
    public WeaponInfo getWeaponInfo(String id) throws Exception {
        return destinyHtmlUtils.getWeaponInfo(id);
    }

    @Override
    public ArmorInfo getArmorInfo(String id) throws Exception {
        return destinyHtmlUtils.getArmorInfo(id);
    }

    @Override
    public List<ItemsLegend> getItemsLegend(String id) {
        return destinyHtmlUtils.getItemsLegend(id);
    }

    @Override
    public List<SealsLegend> getSealsLegend(String id) {
        return destinyHtmlUtils.getSealsLegend(id);
    }

    @Override
    public List<ItemLegendDetail> getItemsLegendDetail(String id) {
        return destinyHtmlUtils.getItemsLegendDetail(id);
    }


}
